import { defineConfig } from 'vite'
import react from '@vitejs/plugin-react'


export default defineConfig({
    plugins: [react()],
    server: {
        https: false,
        proxy: {
            '/api': {
                target: 'http://jacklv.cn:3000/', // 接口的域名
                changeOrigin: true, // 如果接口跨域，需要进行这个参数配置
                rewrite: path => path.replace(/^\/api/, '')
            }
        }
    }
})